<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $guarded = [];
    public $timestamps =false;

    public function product(){
        return $this->belongsTo('App\Models\Product','product_id');
    }

    public function records()
    {
        return $this->hasMany('App\Models\Record', 'user_id');
    }
}
